package com.youyi.yychosesdk.utils.Color;

public class ColorUtils {
    public static int toGrey(int i) {
        return (((((i & 16711680) >> 16) * 38) + (((65280 & i) >> 8) * 75)) + ((i & 255) * 15)) >> 7;
    }

    public static boolean isBlackColor(int i) {
        return toGrey(i) < 50;
    }

    public static boolean isWhiteColor(int i) {
        return toGrey(i) > 200;
    }
}
